apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  labels:
    app: fedora-ostree-pruner
  name: fedora-ostree-pruner
spec:
  replicas: 1
  selector:
    app: fedora-ostree-pruner
  strategy:
    resources: {}
  template:
    metadata:
      labels:
        app: fedora-ostree-pruner
      name: fedora-ostree-pruner
    spec:
      containers:
      - name: fedora-ostree-pruner
        # sleep infinity is useful for debugging environment issues
        # comment out when not debugging
        args: ['infinity']
        command: ['/usr/bin/sleep']
        volumeMounts:
        - name: fedora-ostree-content-volume
          mountPath: /mnt/koji
        image: ""
        imagePullPolicy: IfNotPresent
        resources: {}
      volumes:
      - name: fedora-ostree-content-volume
        persistentVolumeClaim:
          claimName: fedora-ostree-content-volume
      restartPolicy: Always
  test: false
  triggers:
  - type: ConfigChange
  - type: ImageChange
    imageChangeParams:
      automatic: true
      containerNames:
      - fedora-ostree-pruner
      from:
        kind: ImageStreamTag
        name: fedora-ostree-pruner-img:latest
